package beans;

public class Client {

	private int id;
	private String nom;
	private String mdp;
	private boolean estAdmin;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getNom() {
		return nom;
	}
	public void setNom(String nom) {
		this.nom = nom;
	}
	public String getMdp() {
		return mdp;
	}
	public void setMdp(String mdp) {
		this.mdp = mdp;
	}
	
	
	@Override
	public String toString() {
		return "Client [id=" + id + ", nom=" + nom + ", mdp=" + mdp
				+ ", estAdmin=" + estAdmin + "]";
	}
	
	public Client(int id, String nom, String mdp, boolean estAdmin) {
		super();
		this.id = id;
		this.nom = nom;
		this.mdp = mdp;
		this.estAdmin = estAdmin;
	}
	
	public Client(int id, String nom, String mdp) {
		super();
		this.id = id;
		this.nom = nom;
		this.mdp = mdp;
	}
	public Client(String nom, String mdp) {
		this.id = 0;
		this.nom = nom;
		this.mdp = mdp;
	}
	public Client() {
		this.id = 0;
		this.nom = null;
		this.mdp = null;
	}
	public boolean isAdmin() {
		return estAdmin;
	}
	public void setAdmin(boolean estAdmin) {
		this.estAdmin = estAdmin;
	}
	
}
